/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 98152
 * Date: 2025-03-25
 * Time: 17:07
 */
public class Test {
    public static void main(String[] args) {
        int[] nums = {1, 1, 4, 2, 3};
        int x = 5;
        Solution solution = new Solution();
        int ret = solution.minOperations(nums, x);
        System.out.println(ret);
    }
}
